package sample.api.client;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2014/12/22
 * Time: 19:51
 */
public enum HttpMethod {
    Post, Get;

    public static HttpMethod parse (String name) {
        if ("post".equalsIgnoreCase (name)) return Post;
        if ("get".equalsIgnoreCase (name)) return Get;
        return null;
    }
}
